package xc.com.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import xc.com.common.Result;
import xc.com.course.domain.TeachplanMedia;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhuolizhong
 * @since 2021-06-03
 */
public interface TeachplanMediaService extends IService<TeachplanMedia> {
    /**
     * 添加课程计划视频信息
     * @param courseId
     * @param teachplanId
     * @param file
     * @param mediaName
     * @return
     */
   Result addTeachPlanMedia(String courseId,String teachplanId,String mediaName,MultipartFile file);
    /**
     * 根据课程计划id修改课程计划视频信息
     * @param courseId
     * @param teachplanId
     * @param mediaId
     * @param file
     * @return
     */
   Result updateTeachPlanMedia(String courseId,String teachplanId,String mediaId,MultipartFile file);


    /**
     * 根据课程计划id查询课程计划视频信息
     * @param teachplanId
     * @return
     */
   TeachplanMedia findByTeachplanId(String teachplanId);

    /**
     * 添加课程计划视频信息
      * @param teachplanMedia
     * @return
     */
   Result addMedia(TeachplanMedia teachplanMedia);
}
